package com.tree.experiment.quietcam;

import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.SearchView;

public class CustomWebViewClient extends WebViewClient {

	private SearchView refSearchView;
	
	
	
	public SearchView getRefSearchView() {
		return refSearchView;
	}



	public void setRefSearchView(SearchView refSearchView) {
		this.refSearchView = refSearchView;
	}



	@Override 
	public boolean shouldOverrideUrlLoading(WebView view, String url) 
	{ 
		System.out.println("DDD URL: "+url.toString()); 
		view.loadUrl(url); 
		refSearchView.setQuery(url, false);
		return true; 
	}
	
}
